module.exports = {
  apps: [{
    name: "mydy-api",
    script: "app.js",
    instances: "1",
    exec_mode: "fork",
    watch: false,
    max_memory_restart: "300M",
    autorestart: true,
    restart_delay: 3000,
    env: {
      NODE_ENV: "production",
      PORT: 3000,
      HOST: "0.0.0.0",
      DB_HOST: "localhost",
      DB_PORT: 3306,
      DB_USER: "qifeng",
      DB_PASSWORD: "qifeng",
      DB_NAME: "qifeng"
    },
    env_development: {
      NODE_ENV: "development",
      PORT: 3000,
      HOST: "0.0.0.0",
      DB_HOST: "localhost",
      DB_PORT: 3306,
      DB_USER: "qifeng",
      DB_PASSWORD: "qifeng",
      DB_NAME: "qifeng"
    }
  }]
} 